package com.stx.stcp.service.impl;

import com.stx.stcp.bean.AdminBean;
import com.stx.stcp.mapper.AdminMapper;
import com.stx.stcp.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class AdminServiceImpl  implements AdminService{
    @Autowired
    private AdminMapper adminMapper;

    @Override
    public AdminBean login(String zh, String pwd) {
        AdminBean adminBean = adminMapper.login(zh,pwd);
        return adminBean;
    }
}